home *** CD-ROM | disk | FTP | other *** search
- /* 1992 H.Ogasawara(COR.) */
- /* :vi:se ts=8 sw=8: */
- #include <stdio.h>
- #include <wlib.h>
- #include <winop.h>
- #include <HS_wlib.h> /* 1992 by H.Ogasawara(COR.) */
-
- WindowID
- IconifyOperation( wp, h, v, exec )
- WindowID wp;
- int h, v;
- int (*exec)();
- {
- IconMan *cp;
- int x= HS_WindowGetPositionX(wp),
- y= HS_WindowGetPositionY(wp),
- attr;
- WindowID iconwp= NULL;
- if( cp= WindowGetCommon( "IconManExec", 0 ) )
- if( iconwp= (*cp->iconifyexec)( wp, h, v, exec, &x, &y ) )
- return;
- attr= HS_WindowGetAttr(wp);
- WindowSetAttr( wp, WindowAttrInvisible );
- iconwp= WindowSimpleOpen( x, y, h, v, NULL, exec );
- WindowSetClientData( iconwp, attr, wp );
- WindowRedraw( iconwp );
- return iconwp;
- }
-
-